define(function(require, exports){
	var $ = require('jquery');
	var pubjs = require('pubjs');
	var grid = require('@base/highGrid').base;

	var DealAdGrid = grid.extend({
		init: function(config){
			config = pubjs.conf(config, {
				'cols': [
					{name: 'id', text: LANG('序号'), align: 'center'},
					{name: 'Name', text: LANG('广告位'), align: 'center'},
					{name: 'DealId', text: LANG('所属订单ID'), align: 'center'},
					{name: 'Size', text: LANG('尺寸'), align: 'center'}
				]
				,'hasSearch': false
				,'hasExport': false
				,'hasRefresh': false
				,'hasAmount': false
				,'hasSubGrid': false
				,'hasTab': false
				,'hasFixedHeightBtn': false
				,'hasFilterSidebar': true
				,'reqType': 'websocket'
				,'sub_field': 'key'
				,'hasSelect': true
				,'pager': {'size': 10}
				,'sidebar_config': {
					'height': 200,
					'items': [
						{'name': 'type', 'uri': 'modules/sideBarBase.radio', 'config': {
							'title': LANG('类型：'),
							'data': [
								{id: 0, name: LANG('全部')},
								{id: 2, name: LANG('私下竞价')},
								{id: 1, name: LANG('首选交易')},
								{id: 3, name: LANG('PDB')}
							],
							'value': 0
						}},
						{'name': 'deal', 'uri': 'modules/sideBarBase.dealRadio', 'config': {
							'title': LANG('订单：'),
							'data': [
								{id: 0, name: LANG('全部')},
								{id: 1, name: LANG('指定订单')}
							],
							'value': 0
						}}
					]
				}
			});

			this.Super('init', arguments);
		}
	});

	exports.dealAdGrid = DealAdGrid;
});